home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1192 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.netvision.net.il!usenet
  2. From: simchoni@netvision.net.il (Uri Simchoni)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: 9 Jan 1996 18:47:43 GMT
  6. Organization: Simchoni Automation Systems Ltd
  7. Message-ID: <4cud8f$gup@news.netvision.net.il>
  8. References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd <4cc2b2$11jq@navajo.gate.net>
  9. NNTP-Posting-Host: ts4cp13.netvision.net.il
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.3
  12.  
  13. In article <4cc2b2$11jq@navajo.gate.net>, feathers@gate.net says...
  14. >Where I work, all the truly portable code is written in terms of 
  15. >typedefs.  We alter the typedefs in an include file to alter data
  16. >sizes and performance characeristic, and our variant of Hungarian
  17. >uses these type names.
  18.  
  19. I'm trying to get used to the idea...
  20.  
  21. What if you have a variable which contains the delay between two 
  22. operations in milliseconds. Do you make up a new type, say
  23.  
  24. typedef unsigned MSEC
  25.  
  26. and declare:
  27.  
  28. MSEC cmsecDelayBetweenCharacters; ?
  29.  
  30. Where do you put all those typedefs? in the beginning of the .c file, 
  31. right before the declaration of in a separate .h file?
  32.  
  33. Thanks for your response,
  34. Uri
  35.  
  36.